import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import deptStore from '@/store/modules/deptStore/deptStore'
import empStore from '@/store/modules/empStore/empStore'
import userStore from '@/store/modules/userStore/userStore'
Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    deptStore,
    empStore,
    userStore
  },
  getters
})

export default store
